﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using dpdw.Structure.FaçadePattern;

namespace dpdw.testing.Structure
{
    [TestClass]
    public class TestFaçadePattern
    {
        [TestMethod]
        public void TestFaçadePatternMethod1()
        {
            System.Diagnostics.Trace.WriteLine("\r\n" + "TestFaçadePatternMethod1");

            Amplifier amp = new Amplifier();
            Tuner tuner = new Tuner();
            DvdPlayer dvd = new DvdPlayer();
            CdPlayer cd = new CdPlayer();
            Projector projector = new Projector();
            TheaterLights lights = new TheaterLights();
            Screen screen = new Screen();

            HomeTheaterFacade homeTheater = new HomeTheaterFacade(
                amp, tuner, dvd, cd, projector, lights, screen);

            homeTheater.WatchMovie();
            homeTheater.EndMovie();

            homeTheater.ListenToRadio();
            homeTheater.EndRadio();
        }
    }
}
